home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / hdf3_2r2.lha / HDF3.2r2 / MAKE.IRIS4 < prev    next >
Encoding:
Text File  |  1992-10-30  |  3.9 KB  |  155 lines

  1. #
  2. # ##################################################################
  3. #
  4. #                   NCSA HDF Version 3.2 release 2
  5. #                         October 30, 1992
  6. #
  7. #           MAKEFILE for creating the HDF library, libdf.a, on SGIs
  8. #
  9. # This makefile creates the following FORTRAN and C interfaces 
  10. # for HDF in a library called "libdf.a": 
  11. #
  12. #              DFR8   (8-bit raster image sets)
  13. #              DF24   (24-bit raster image sets)
  14. #              DFP    (palettes)
  15. #              DFSD   (scientific data sets)
  16. #              DFAN   (annotations)
  17. #              V      (vsets)
  18. #
  19. # See the file INSTALL for further information on how to invoke
  20. # this makefile.
  21. #
  22. # This release of HDF marks the first use of a new set of lower
  23. # level routines.  The makefile also creates these interfaces,
  24. # which are available in C only.  These routines are categorized 
  25. # as follows:
  26. #
  27. #              H      (lower level i/o)
  28. #              DF     (emulation of old lower level i/o routines)
  29. #              HD     (lower level utilities for developers)
  30. #              HE     (lower level error-handling)
  31. #              HD     (lower level utilities, for developers)
  32. #              DFK    (conversion routines)
  33. #
  34. # ##################################################################
  35. #
  36. #
  37. #
  38. #
  39. # This is the top level Makefile to build HDF 3.2 on Unix based
  40. #       platforms
  41. #
  42. # Possible Machine Types
  43. #   SUN, IBM6000, HP9000, MIPSEL (Dec Mips based machines), ...
  44. #
  45.  
  46. # Define your sh shell
  47. SHELL=/bin/sh
  48.  
  49. # Define your machine type
  50. MACHINE=IRIS4
  51.  
  52. # Define your C compiler and flags
  53. CC= cc
  54. CFLAGS= -D${MACHINE} -cckr
  55.  
  56. # Define your FORTRAN compiler
  57. FC= f77
  58. FFLAGS=
  59.  
  60. # Define gl library
  61. GLLIB = -lgl_s
  62.  
  63. # Location where the HDF include files are to be installed
  64. HDFINC= `pwd`/include
  65.  
  66. # Location where the HDF library is to be installed
  67. HDFLIB= `pwd`/lib
  68.  
  69. # Location to put HDF utility executables
  70. HDFBIN= `pwd`/bin
  71.  
  72. # Name of library archiver and flags to send
  73. AR= ar
  74. ARFLAGS= rs
  75.  
  76. # Name of achive randomizer (use 'touch' if non-existant)
  77. RANLIB= touch
  78.  
  79. # Name of remove utility
  80. RM= /bin/rm
  81. RMFLAGS= -f 
  82.  
  83. #
  84. #
  85. # Flags to recursively send
  86. #
  87.  
  88. HDF_FLAGS       = \
  89.         CC="$(CC)" CFLAGS="$(CFLAGS)" FC="$(FC)" FFLAGS="$(FFLAGS)" \
  90.         RANLIB="$(RANLIB)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" RM="$(RM)" \
  91.         RMFLAGS="$(RMFLAGS)" MACHINE="$(MACHINE)" HDFLIB="$(HDFLIB)" \
  92.         HDFINC="$(HDFINC)" HDFBIN="$(HDFBIN)" GLLIB="$(GLLIB)"    
  93.  
  94. #
  95. #
  96. # General rules
  97. #
  98. all:
  99.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@ \
  100.           SUBDIRS="src util test" _sub message 
  101.  
  102. allnofortran:
  103.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=nofortran \
  104.           SUBDIRS="src util test" _sub message 
  105.  
  106. libnofortran:
  107.     @$(MAKE) $(MYFLAGS) $(HDF_FLAGS) TARG=nofortran \
  108.       SUBDIRS="src" _sub message
  109.  
  110. libnostub: libnofortran
  111.  
  112. allnostub: allnofortran
  113.  
  114. libdf:
  115.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \
  116.           SUBDIRS="src" _sub
  117.  
  118. utilities:
  119.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \
  120.           SUBDIRS="util" _sub
  121.  
  122. tests:
  123.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \
  124.           SUBDIRS="test" _sub
  125.  
  126. #install:      $(INSTALL_DIRS)
  127. #    @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@  \
  128. #          SUBDIRS="src util test" _sub
  129.  
  130. clean:
  131.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@  \
  132.           SUBDIRS="src util test" _sub
  133.     $(RM) $(RMFLAGS) core *.log
  134.  
  135. _sub:
  136.     @for dir in $(SUBDIRS); do \
  137.           (cd $$dir; echo Making \`$(TARG)\' in `pwd`; \
  138.               $(MAKE) $(MFLAGS) $(HDF_FLAGS) $(TARG)); \
  139.     done
  140.  
  141. message:
  142.     @echo ""
  143.     @echo "***********************************************************"
  144.     @echo " HDF 3.2 library successfully created."
  145.     @echo ""
  146.     @echo "If you have any old vset files (v 1.0) you must use vcompat"
  147.     @echo "to make them compatible with Vset 2.0 applications"
  148.     @echo ""
  149.     @echo "User programs can be created as follows:"
  150.     @echo ""
  151.     @echo "   cc -D${MACHINE} program.c libdf.a -o program"
  152.     @echo ""
  153.     @echo "***********************************************************"
  154.     @echo ""
  155.